package com.gao.frame;

import javax.swing.*;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public class JFrameTest {
    public static void main(String[] args) {
        //创建窗体对象
        JFrame jFrame = new JFrame();
        //设置窗体大小
        jFrame.setSize(500,800);
        jFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        jFrame.setTitle("小游戏");
        //设置窗体可见
        jFrame.setVisible(true);
    }
}
